import qs from 'query-string';
import { useLocation } from 'react-router-dom';

export const useQuery = () => {
  const { search } = useLocation();
  return qs.parse(search);
};
